/**
 *
 */
package com.googlecode.pkchat.pkserver;

import java.net.*;
import java.io.*;

/**
 * @author Simon Pratt
 *
 */
public class UserSocket{
	String name;
	Socket s;

	public UserSocket(Socket s){
		this.s = s;
		name = String.valueOf(s.getInetAddress());
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public OutputStream getOutputStream() throws IOException{
		return s.getOutputStream();
	}
	public InputStream getInputStream() throws IOException{
		return s.getInputStream();
	}
	public Socket getSocket(){
		return s;
	}
}
